package com.zzz.tesr;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class JobDempApplication {

    public static void main(String[] args) {
        SpringApplication.run(JobDempApplication.class, args);
    }
//    // 配置 XXL-Job 执行器
//    @Bean
//    public XxlJobSpringExecutor xxlJobExecutor() {
//        XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
//        xxlJobSpringExecutor.setAppname("xxl-job-executor");
//        xxlJobSpringExecutor.setAddress("http://localhost:9993");
//        xxlJobSpringExecutor.setAdminAddresses("http://localhost:8080/xxl-job-admin");
//        xxlJobSpringExecutor.setLogPath("/data/applogs/xxl-job/jobhandler");
//        xxlJobSpringExecutor.setAccessToken("");  // 如配置了 accessToken，需要同步填写
//        return xxlJobSpringExecutor;
//    }
}
